<style xmlns="http://www.w3.org/1999/html">
    .table-adminlog tr td {
        word-break: break-all;
    }
</style>
<table class="table table-striped table-adminlog">
    <thead>
    <tr>
        <th width="100">{:__('Title')}</th>
        <th>{:__('Content')}</th>
    </tr>
    </thead>
    <tbody>
    {volist name="row" id="vo" }

    {if  !$row.refund_status  && in_array($key,['refund_number','apply_time','refund_status','refund_time','before_refund_status']) }

    {else/}
    <tr>
        <td>{:__($key)}</td>
        <td>{if $key=='createtime'}
            {$vo|datetime}

            {elseif $key == 'goods_img'/}
            <div>
                <img src="{$vo}" onclick="img(this)" width="40px" height="40px">
            </div>
            {else/}
            {$vo|htmlentities}
            {/if}
        </td>
    </tr>
    {/if}
    {/volist}
    </tbody>
</table>
<div class="hide layer-footer">
    <label class="control-label col-xs-12 col-sm-2"></label>
    <div class="col-xs-12 col-sm-8">
        <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">{:__('Close')}</button>
    </div>
</div>
<script type="text/javascript">

    // 预览图弹出处理
  function img(e){
      // $('img').parent('a').attr('href','javascript:;');//去掉图片oss连接地址
      // $('img').click('click',function(){
          var imgs = $(e).parents('div').children('img');
          var dataJson = [],item={};
          for (var i = 0; i < imgs.length; i++) {
              item['alt'] = '';
              item['pid'] = Math.random()*10;
              item['src'] = item['thumb'] = $(imgs[i]).attr('src');
              dataJson.push(item);
              item = {}; // 重置
          }
          var json =  {
              "title": "", //相册标题
              "id": 123, //相册id
              "start": 0, //初始显示的图片序号，默认0
              "data": dataJson
          };
          Layer.photos({
              photos: json,
              anim: 0 //0-6的选择，指定弹出图片动画类型，默认随机（请注意，3.0之前的版本用shift参数）
          });
  }
</script>
